﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TeamBuy.Common
{
    public interface ITeamBuyUser
    {
        int UserLogin(string userEmail, string userPwd);
        DataTable GetUser(int userID);
        int CreateUser(string userEmail, string userPwd, string userName, int cityID);
        bool IsUserEmailUsed(string userEmail);
        int ChangePassword(int userID, string oldPwd, string newPwd);
        string ResetPassword(string userEmail);
        bool ActiveUser(int userID);
        DataTable GetUserByEmailAndPwd(string userEmail, string userPwd);
        bool UpdateUserSetting(int userID, string userName, string userMobile);
        bool UpdateUserMobile(int userID, string userMobile);
    }
}
